package fr.greta.centre.dao;

import static org.junit.Assert.*;

import java.sql.Date;
import java.sql.SQLException;


import org.junit.Test;

import fr.greta.centre.metier.Cursus;
import fr.greta.centre.metier.Promotion;


public class PromotionDAOImplTest {
	PromotionDAOImpl promoDao = new PromotionDAOImpl();
	
	//Date dateDebut = new Date(1975-01-12);
	Cursus cursus = new Cursus(null,12,null);
	
	
	int idPromotion;
	Promotion unePromotion = new Promotion(cursus,idPromotion,null,null,null,null);

	@Test
	public void testSave() throws SQLException{
		
		idPromotion = 14;
		promoDao.save(unePromotion);
		System.out.println(idPromotion);

		
	}
		
	}

